Skip to content

anonymisedRtdProvider: Anonymised Marketing Tag external script QSP updated#14623

Merged
patmmccann merged 1 commit intoprebid:masterfrom
id-ward:anonymisedRtdProvider-anon-tag-settings-qsp-update
Mar 20, 2026
Merged

anonymisedRtdProvider: Anonymised Marketing Tag external script QSP updated#14623
patmmccann merged 1 commit intoprebid:masterfrom
id-ward:anonymisedRtdProvider-anon-tag-settings-qsp-update

Conversation

@kyrylenko
Copy link
Contributor

Type of change

  • Other

Description of change

Anonymised RTD Provider: append current domain to Marketing Tag URL

Appends the publisher's domain as a d query parameter to the Anonymised Marketing Tag script URL when it is loaded by the RTD provider.

Before:
https://static.anonymised.io/light/loader.js?ref=prebid

After:
https://static.anonymised.io/light/loader.js?ref=prebid&d=example.com

The domain is read from window.location.hostname, which returns the ASCII/punycode hostname and requires no additional encoding. This change only applies when no custom tagUrl is provided — publisher-supplied URLs are passed through unchanged. The unit test for script loading has been updated to reflect the new URL format.

Other information

Copilot AI review requested due to automatic review settings March 20, 2026 14:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Anonymised RTD Provider’s default Marketing Tag loader URL to include the current page’s domain as a query string parameter, so the external script receives publisher domain context when loaded by Prebid RTD.

Changes:

  • Append d=<window.location.hostname> to the default Marketing Tag URL when params.tagUrl is not provided.
  • Update the unit test expectation for the loaded script URL to include the new d parameter.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/anonymisedRtdProvider.js Adds &d=${window.location.hostname} to the default Marketing Tag loader URL.
test/spec/modules/anonymisedRtdProvider_spec.js Updates expected loadExternalScript URL to match the new default format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d5e530a9a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 23347685384

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 96.343%

Totals Coverage Status
Change from base Build 23344366270: 0.0%
Covered Lines: 215925
Relevant Lines: 224120

💛 - Coveralls

@patmmccann patmmccann merged commit 8a2b3c9 into prebid:master Mar 20, 2026
105 of 106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants